﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;

namespace SIBI.Reports.CtrlMovimientoBI
{
    public partial class Reporte : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            List<ReportParameter> paramList = new List<ReportParameter>();

            paramList.Add(new ReportParameter("BienInformaticoId", TextBox1.Text, false));
            paramList.Add(new ReportParameter("ccmo", TextBox2.Text, false));
            paramList.Add(new ReportParameter("dfmo", TextBox3.Text, false));
            paramList.Add(new ReportParameter("cubf", TextBox4.Text, false));

            this.ReportViewer1.LocalReport.SetParameters(paramList);

            this.ReportViewer1.LocalReport.Refresh();
        }
    }
}
